<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class UploadController extends Controller
{
    public function index(Request $request){

        $url= $request->file('images')->store('file');
        return response()->json(
            [
                'status' => 1,
                'message'=>'请求数据成功',
                'data' => $url
            ]
        );

    }
}
